package cc.picc.web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * 
 * @author lijinting01
 *
 */
@Controller
public class HomeController {

	private static final String VIEW_INDEX = "index";

	private static final String VIEW_HELP = "help";

	private static final String VIEW_DEMO = "demo";

	private static final String VIEW_DEMO1 = "demo1";

	private static final String VIEW_DEMO2 = "demo2";

	private static final String VIEW_DEMO3 = "demo3";

	/**
	 * 
	 * @return
	 */
	@GetMapping("/")
	public String index() {
		return VIEW_INDEX;
	}

	/**
	 * 
	 * @return
	 */
	@GetMapping("/help")
	public String help() {
		return VIEW_HELP;
	}

	/**
	 * 
	 * @return
	 */
	@GetMapping("/demo")
	public String demo() {
		return VIEW_DEMO;
	}

	/**
	 * 
	 * @return
	 */
	@GetMapping("/demo1")
	public String demo1() {
		return VIEW_DEMO1;
	}

	/**
	 * 
	 * @return
	 */
	@GetMapping("/demo2")
	public String demo2() {
		return VIEW_DEMO2;
	}

	/**
	 * 
	 * @return
	 */
	@GetMapping("/demo3")
	public String demo3() {
		return VIEW_DEMO3;
	}
}
